using SinBiota.Model.Entities;

namespace SinBiota.Model.Persistence.NHibernateMappings
{
    public class PublicationMapping : BaseEntityMapping<Publication>
    {

	//this overrides the default automapping because of field length requirements 

        public PublicationMapping()
        {
            Map(p => p.Title).Not.Nullable().Length(1000);
            Map(p => p.Journal);
            Map(p => p.Number);
            Map(p => p.Abstract).Length(8000);
        }
    }
}
